package cn.yunbamboos.media.zlm.client.result.data;

import com.alibaba.fastjson2.JSONObject;

public class AddFFmpegSourceResultData implements IResultData {

    private String key;

    @Override
    public void decode(JSONObject body) {
        if(body != null && body.containsKey("data")) {
            JSONObject data = body.getJSONObject("data");
            if(data != null && data.containsKey("key")) {
                this.key = data.getString("key");
            }
        }
    }

    public String getKey() {
        return key;
    }
}
